package com.cdcas.class1920;

import java.util.Date;

public class Emp {
    private Long empno;
    private String ename;
    private String job;
    private Double salary;
    private Date hireDate;
    private Dept dept;

    public Long getEmpno() {
        return empno;
    }

    public void setEmpno(Long empno) {
        this.empno = empno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public Date getHireDate() {
        return hireDate;
    }

    public void setHireDate(Date hireDate) {
        this.hireDate = hireDate;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    @Override
    public String toString() {
        return "emp:empno=" + empno + "ename=" + ename + "job=" + job + "salary=" + salary +
                "入职时间=" +hireDate + "dept对象:" + dept.getDname();
    }
}
